package com.game.framework.balance.config;

import com.game.framework.balance.BusinessServerService;
import com.game.framework.balance.PlayerServiceInstance;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GameServerBalanceAutoConfig {

	@Autowired
	protected ApplicationContext applicationContext;

	@Bean
	public BusinessServerService businessServerService() {
		return new BusinessServerService();
	}

	@Bean
	public PlayerServiceInstance playerServiceInstance() {
		return new PlayerServiceInstance(applicationContext);
	}
}
